package com.system.manager.modules.authorized.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;

/**
 * @Classname LoginUser
 * @Description TODO 用于接收从页面传来的用户名和密码
 * @Date 2021/10/18 10:45
 * @Created by 杨小鹏：【241960695@qq.com】
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginUser {

    // 登陆证号Id
    @NotNull(message = "id不能为空")
    @Length(max = 20, min = 1)
    private String username;

    // 登陆密码
    @NotNull
    @Length(max = 16, min = 1)
    private String password;
}
